#!/bin/bash

echo ""

echo "Lancement des tests de ada-dico..."

rm -f *~
rm -f *.ali
rm -f *.o

gnatmake test_*.adb &> /dev/null

echo ""

echo "Lancement de test_dico_vide..."

./test_dico_vide

if [ $? -eq 0 ]
then
  echo "Passed"
else
  echo "Failed"
fi

echo ""

echo "Lancement de test_dico_unitaire..."

./test_dico_unitaire

if [ $? -eq 0 ]
then
  echo "Passed"
else
  echo "Failed"
fi

echo ""

echo "Lancement de test_dico_mini..."

./test_dico_mini

if [ $? -eq 0 ]
then
  echo "Passed"
else
  echo "Failed"
fi

echo ""

echo "Lancement de test_dico_hash_bete..."

./test_dico_hash_bete

if [ $? -eq 0 ]
then
  echo "Passed"
else
  echo "Failed"
fi

echo ""

echo "Lancement de test_dico_hash_3der..."

./test_dico_hash_3der

if [ $? -eq 0 ]
then
  echo "Passed"
else
  echo "Failed"
fi

echo ""

echo "Lancement de test_dico_hash_3prem..."

./test_dico_hash_3prem

if [ $? -eq 0 ]
then
  echo "Passed"
else
  echo "Failed"
fi

echo ""

echo "Lancement de test_dico_hash_biz..."

./test_dico_hash_biz

if [ $? -eq 0 ]
then
  echo "Passed"
else
  echo "Failed"
fi

echo ""

echo "Lancement de test_dico_hash_somme..."

./test_dico_hash_somme

if [ $? -eq 0 ]
then
  echo "Passed"
else
  echo "Failed"
fi

rm -f *~
rm -f *.ali
rm -f *.o
rm -f test_dico_hash_bete test_dico_hash_3der test_dico_hash_3prem test_dico_hash_biz test_dico_hash_somme test_dico_vide test_dico_unitaire test_dico_mini

